<?php
/**
 * File: polymerkeywords.php.
 * Author: zhouzhe@haibao.com
 * Editor: PhpStorm
 * Date: 16/8/3 上午10:30
 * Brief:
 */

namespace haibao\cms\model\data;

class PolymerKeywords extends Base{
	const STATUS_CLOSE = 0;

	CONST STATUS_OPEN = 1;

	CONST STATUS_DELETE = 2;

	const IS_PRODUCED_NOT = 0;

	const IS_PRODUCED_YES = 1;

	/**
	 * 关键词
	 */
	public $Keyword;

	/**
	 * @var所属标签Id
	 */
	public $ParentTagId;

	/**
	 * 开始显示日期
	 */
	public $StartTime;

	/**
	 * 结束显示日期
	 */
	public $EndTime;

	public $CreateBy;

	public $CreateTime;

	public $Status;

	public $IsProduced;

	public $User;

	public $TagInfo;
	
	public $LastDataTime;

	public $Url;

	public function __construct(){
		parent::__construct();

		$this->stringField('Keyword', 'Keyword',true);
		$this->intField('ParentTagId', 'ParentTagId',true);
		$this->dateField('StartTime', 'StartTime',true);
		$this->dateField('EndTime', 'EndTime',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('Status', 'Status',true);
		$this->intField('IsProduced', 'IsProduced',true);
		$this->intField('LastDataTime', 'LastDataTime');

		$this->setTableName('PolymerKeywords');
	}
}